set JBOSS_HOME=D:\DEVEL\jboss\jboss-as-7.2.0.Final
set EAR_NAME=DataModelling.ear

del /q /s %JBOSS_HOME%\standalone\deployments\%EAR_NAME%
call mvn clean
call mvn install -DskipTests=true
del /q /s %JBOSS_HOME%\standalone\deployments\%EAR_NAME%.deployed
sleep 5
copy ear\.target\%EAR_NAME%  %JBOSS_HOME%\standalone\deployments\%EAR_NAME%
echo "" > %JBOSS_HOME%\standalone\deployments\%EAR_NAME%.deployed

